// pages/main/main.js
const app = getApp()
Page({

  /**
   * 页面的初始数据
   */
  data: {
    swiperList: [
      '../../images/swiper/banner1.jpeg',
      '../../images/swiper/banner2.jpeg',
      '../../images/swiper/banner3.jpeg',
      '../../images/swiper/banner4.jpeg',
      '../../images/swiper/banner5.jpeg',
      '../../images/swiper/banner6.jpeg',
    ],
    publishList: [{
        icon: "../../images/publish/expressGet.png",
        text: "快递代取",
        url: "../expressGet/expressGet"
      },
      {
        icon: "../../images/publish/print.png",
        text: "打印服务",
        url: "../print/print"
      },
      {
        icon: "../../images/publish/run.png",
        text: "校园跑腿",
        url: "../run/run"
      },
      {
        icon: "../../images/publish/expressSend.png",
        text: "快递代寄",
        url: "../expressSend/expressSend"
      },
      {
        icon: "../../images/publish/rent.png",
        text: "租借服务",
        url: "../rent/rent"
      },
      {
        icon: "../../images/publish/game.png",
        text: "游戏陪玩",
        url: "../game/game"
      },
      {
        icon: "../../images/publish/trash.png",
        text: "代扔垃圾",
        url: "../trash/trash"
      },
      {
        icon: "../../images/publish/replace.png",
        text: "代替服务",
        url: "../replace/replace"
      },
      {
        icon: "../../images/publish/otherHelp.png",
        text: "其他帮助",
        url: "../otherHelp/otherHelp"
      }
    ]
  },
  showNotice() {
    wx.showModal({
      title: '通知消息',
      content: '所有问题统一每天晚上22：00-01:00处理，直接联系客户留言即可！发单写清楚需求，接单也请看清楚下单的需求！谢谢配合！',
      showCancel: false
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {


  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})